package Views;

import Source.DeleteAirport;
import UCM.UCDeleteAirport;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JPanel;

/**
 *
 * @author Joshua King
 */
public class ViewDeleteAirport extends JPanel {
    private JComboBox newBox;
    private JButton deleteAirportButton = new JButton("Delete Airport");
    private UCDeleteAirport UCDeleteAirport = new UCDeleteAirport(this);
    private DeleteAirport model;
    
    
    public ViewDeleteAirport(String[] str) {
        newBox = new JComboBox(str);
        add(newBox);
        add(deleteAirportButton);
        deleteAirportButton.addActionListener(new AdapterUCCToAL(UCDeleteAirport));
        validate();
    }

    public void loadTo(DeleteAirport model) {
        this.model = model;
    }

}
